import {defineAutoPagesConfig} from "@jl15988/uni-auto-pages";

export default defineAutoPagesConfig({
  "easycom": {
    "autoscan": true,
    "custom": {
      "^z-paging$": "z-paging/components/z-paging/z-paging.vue",
      // uview plus
      "^u--(.*)": "uview-plus/components/u-$1/u-$1.vue",
      "^up-(.*)": "uview-plus/components/u-$1/u-$1.vue",
      "^u-([^-].*)": "uview-plus/components/u-$1/u-$1.vue",
    }
  },
  subPackages: [{
    root: 'pages2',
  }],
  globalStyle: {
    navigationBarTextStyle: "black",
    navigationBarTitleText: "",
    navigationBarBackgroundColor: "#F8F8F8",
    backgroundColor: "#F8F8F8"
  },
  tabBar: {
    iconfontSrc: "node_modules/@dcloudio/uni-ui/lib/uni-icons/uniicons.ttf",
    color: "#7A7E83",
    selectedColor: "#227cdc",
    borderStyle: "black",
    backgroundColor: "#ffffff",
    list: [{
      text: '首页',
      pagePath: 'pages/index/index',
      iconfont: {
        text: '\ue662',
        selectedText: '\ue663',
        color: '#7A7E83',
        selectedColor: '#227cdc',
      }
    }, {
      text: '分类',
      pagePath: 'pages/classification/index',
      iconfont: {
        text: '\ue6cf',
        selectedText: '\ue6c9',
        color: '#7A7E83',
        selectedColor: '#227cdc',
      }
    }, {
      text: '我的',
      pagePath: 'pages/mine/index',
      iconfont: {
        text: '\ue699',
        selectedText: '\ue69d',
        color: '#7A7E83',
        selectedColor: '#227cdc',
      }
    }]
  }
})
